Letters, Labels, and Envelopes

Description

Like Forms, Browses, and Reports, Letters, Labels, and Envelopes are layouts. They follow many of the same design principles, but the default layout for each is specific for its type. In Letters, Labels, and Envelopes, you use Rich Text Objects for most of their design. Alpha Anywhere Genies help you get set up easily and quickly with all three layouts.

Letter templates are layouts for printing traditional mail-style letters. You can merge record information with text layouts to create personalized letters. Typically, you use label templates for printing mail labels for envelopes. However, labels are also useful for generating file folder labels, identification cards, and name tags, based on data from a table or a set. Alpha Anywhere gives you complete flexibility in designing Labels, along with several common pre-defined formats.

Creating Letters

Alpha Anywhere divides the structure of a letter into regions, layout areas where you place Letter objects. Alpha Anywhere lets you create page header and footer regions, a letterhead region, and continuation header and footer regions. With letters, you can do the following tasks:

  • Type the body text of a letter, and place fields from the Drag-and-Drop List in the text, to create customized letters for each record.

  • Insert conditional paragraphs in your lLetter, or use conditional commands to include or exclude parts of your Letter, based on data from a table or set, giving you a dynamic way to customize your letter.

  • Place lines, frames, pictures, and borders in your letter. You can include your company logo in the letterhead section, or insert frames or lines to group or divide parts of the Letter.

  • Order and filter the records that appear in the letter by storing order and selection criteria in the letter, by letting the user specify the order and selection criteria at print time, or by using a combination of the two.

To create a letter, you can use the Letter Genie, which prompts you step by step to help you create your letter, or you can work directly with the Letter Editor. In the next procedure, you use the Letter Genie to create a form letter for AlphaMovies customers, detailing an incentive program designed to keep them coming back. To use the Letter Genie :

  1. Open the AlphaMovies database.

    You should have already created the AlphaMovies database in the Creating a Database lesson.
  2. In the Control Panel, display the Letters tab, and click New. The New Letter Genie appears. In this dialog box, you select the table or set that provides the source of data for the letter. Click OK to continue.

  3. The Form Letter Genie appears.

    images/formLetterGenie.gif
  4. Select Use the Letter Genie and click OK. The Letterhead page of the Form Letter Genie appears, and prompts you to provide letterhead text and alignment.

    images/Form_Letter_Genie.gif
  5. Check Include your name and address in the letterhead,.

  6. Select Center alignment.

  7. Enter the following name and address:

    • AlphaMovies 70 Blanchard Rd., Suite 206 Burlington, MA 01803

  8. Click Next. The Addressee page of the Form Letter Genie appears, and prompts you to define the address format.

  9. In the Table list select "Customer".

  10. Place your cursor in the first of the six address type-in fields at right.

    • 1. In the Fields list select "First_Name" and click '>'.

    • 2. In the Fields list select "Last_Name" and click '>'.

  11. Place your cursor in the second of the six address type-in fields at right.

    • 1. In the Fields list select "Address" and click '>'.

  12. Place your cursor in the third of the six address type-in fields at right.

    • 1. In the Fields list select "City" and click '>'.

    • 2. In the Fields list select "State" and click '>'.

    • 3. In the Fields list select "Postal_Code" and click '>'.

      images/letterGenie3.gif
  13. Add spaces between the fields and a comma after City.

  14. Click Next. The Salutation page of the Form Letter Genie appears.

    • 1. Select "expression" from the first drop-down list box. The Expression Builder appears.

    • 2. Select "Field Name" from the list at left.

    • 3. Select "Customers" in the Select Field dialog.

    • 4. Select "First_Name" and click Insert.

    • 5. Click OK.

  15. Repeat step 14 for the next list box and the "Last_Name" field.

  16. You provide the following salutation, and click Next.

    images/Form_Letter_Genie_commented.gif
  17. Check Include today's date about address block.

  18. Select a date format from the Format list.

  19. Click Next.

  20. Add the following text on the Close page of the Form Letter Genie.

    • Sincerely, The Gang at AlphaMovies

  21. Click Next. The Select Records page of the Form Letter Genie appears.

    images/letterGenie7.gif
  22. Keep the default, All Records, and click Next. The Record Order dialog box appears.

  23. Click Next. The Finish page of the Form Letter Genie appears.

    images/letterGenie9.gif
  24. Keep the default, View the Form Letter design, and click Finish. The letter appears in the Letter Editor.

    images/letterEditor1.gif
  25. Click 'Save' and enter "Incentive" in the Save Letter as Name field.

  26. Click the Print Preview button to view the Letter.

  27. Click Exit Preview when you are finished.

In the next procedure, you add letter text and fields to your Letter.

Working with Rich Text Objects

You use Rich Text Objects for most of the design work in letters. When you first create a letter, Alpha Anywhere places a Rich Text Object in the letter body region. Within this region, you can type in text, insert fields, and place conditional commands to include or exclude conditional paragraphs. To add a Rich Text Object to a letter region:

  1. Select the Rich Text Tool in the Toolbox .

    images/Rich_Text_tool_button.gif
  2. Click and drag the cursor over the letter region in which you want to insert the object.

  3. When you release the mouse button, Alpha Anywhere creates the object.

Before editing a Rich Text Object, you must first activate the Rich Text Editor.

Activating the Rich Text Editor

The Alpha Anywhere Rich Text Editor gives you many word-processing capabilities. You can select a variety of fonts, styles, and sizes, align paragraphs of text, insert page breaks, and find and replace words and phrases. The Rich Text Editor is activated when you are in a Rich Text field, or when you double-click a Rich Text Object while editing a layout. When the editor is active, the Text menu appears in the Alpha Anywhere menu bar. Alternatively, you can create and format letter text in other word processors. You can copy the text to the clipboard and paste it in the Rich Text Object, or save the text as a Rich Text Format document, and import it into Alpha Anywhere. To activate the Rich Text Editor.

  1. Double-click on the letter's body Rich Text Object. The Rich Text Editor Text Toolbar appears.

    images/Rich_Text_Toolbar.gif

Adding Text and Fields to Letters

To add text to the object, simply type in the text you want to include. You can add fields to the text, by dragging them from the Drag-and-Drop List, and placing them in the object. To insert calculations, select Text > Insert, and select Expression from the pull-out menu, or drag "" from the Drag-and-Drop List. When the Expression Properties dialog box appears, type the expression in the Expression field, or click the drop-down list button to create the expression in the Expression Builder.

Inserting Conditional Text

With Alpha Anywhere, you can use the same form letter layout to create different letters, by using conditional text. You use the Rich Text Editor or the Text Toolbar, to specify conditional commands to either include or exclude text, depending on the underlying data. This lets you create one letter layout that you can use for printing multiple versions of the same letter. For example, AlphaMovies wants to send active customers a different letter than it sends to inactive customers. You use the same basic layout for both letters, with a conditional statement to determine which letter body text to include. In the next procedure, you further personalize the Incentive Letter, and create conditional letter body text for active and inactive customers. To add fields and conditional letter body text:

  1. With the Incentive Letter in the Letter Editor, double-click on the letter body's Rich Text Object. The Text Toolbar appears.

  2. Place your cursor in the letter text body paragraph, below the salutation.

  3. Click the Insert button in the Text Toolbar. The RTF Insert Command toolbar appears.

    • images/UG_RTF_Insert_Command_toolbar.gif
    • A simple conditional statement consists of an IF expression that specifies the condition under which a block of text will print. If the condition evaluates to TRUE (.T.), the text that follows it prints. At the end of the block, you can place an ELSE statement which indicates that the following block of text is printed only when the IF expression evaluates to FALSE (.F.). At the end of the conditional block(s) of text, an ENDIF statement indicates that any following text should be printed in all cases. This conditional statement uses the following general structure:

      IF logical condition
      Text to print if the condition is true.
      ELSE
      Text to print if the condition is false.
      ENDIF
      Text to print in all cases.
  4. Click the IF button. The Insert IF Expression dialog box appears.

    images/InsertIfgif.gif
  5. You can type the expression in the Logical Expression field or click the button to create the expression in the Expression Builder. Click the 'xy' button. The Expression Builder appears.

  6. Click the Create Filter Using Genie button.

    images/Filter_Builder_1.gif
    The Create Filter Using Genie button disappears if you type anything in the Expression Builder window. The Filter Builder appears.
  7. Select "Invoice" from the drop down list box at left.

  8. Select "Date" and "is on or after the date".

  9. Enter "12/02/02" and click OK. The expression appears in the Expression Builder.

  10. Click OK. The expression appears in the Logical Expression field of the Insert IF Expression dialog box.

  11. Click OK. The following IF expression appears in the letter body text. Picture

    images/IFclause.gif
  12. Place your cursor at the beginning of the ENDIF statement, and press Enter. Alpha Anywhere creates a new letter body paragraph, between the IF statement and ENDIF.

  13. Press Enter again, and type in the following text: "Here at AlphaMovies, we appreciate your business. Our records show us that you have bought or rented a movie from our collection this past month. As a small token of thanks, we have enclosed a certificate for a free box of Best Microwave Popcorn for you to enjoy with your next movie from AlphaMovies. Come by soon."

  14. Press Enter.

  15. In the RTF Insert Command toolbar, click the Else button. Alpha Anywhere inserts "Else" at the cursor.

  16. Press Enter.

  17. Press Enter again, and type in the following text:

    • "Hey, we miss you! Our records tell us that you have not rented or bought a movie from us in over a month. Frankly, we want you back. Bring this letter for a discount on your next movie rental or purchase. Come by soon." The Letter text appears, as shown in the following screen shot.

      images/letter.gif
    • In the next steps, you further personalize the Letter by adding a First_Name field to the Letter body text.

  18. Click the Drag-and-Drop List button. The Drag-and-Drop List appears.

    images/Drag_and_Drop_List_button.gif
  19. From the Drag-and-Drop List, select the "First_Name" field from the Customers table, and place it after the phrase: "As a small token of thanks".

  20. From the Drag-and-Drop List, select the Customers table "First_Name" field again, and place it after the phrase, "Hey". The Letter body text appears, as shown in the following screen shot.

  21. Click Save, and Print Preview.

  22. Use the record selector arrows to view Letters for active and inactive customers.

    images/letter3.gif
    images/letter4.gif

In the next section, you learn how to create Labels and Envelopes.

Creating Labels and Envelopes

Alpha Anywhere Genies help you create Labels and Envelopes. Like Letters, these layouts use Rich Text Objects. You can select Envelopes by size, and define the printer format. You can select Labels by brand name and printer type. Alpha Anywhere Label layouts let you print information on commercially available sticky-labels. Most commonly, you use a label layout to create mailing labels to put on envelopes. However, they have other uses as well. For example, you can use them to create name tags or to catalog objects in an archive. You can either use the Label Genie, which prompts you step by step to help create your labels, or you can go directly to the label definition.

Using the Label Genie

To create a label, you first select the size criteria. For your convenience, Alpha Anywhere comes with a variety of predefined size templates. After choosing a size, you insert the fields and text that you want to print. Finally, you can set the order and selection criteria to specify the records to print and the order in which they print. In the next procedure, you use the Label Genie to create film ID labels for AlphaMovies inventory. To use the Label Genie :

  1. Open the AlphaMovies database.

  2. In the Control Panel, display the Labels tab, and click New. The New Label dialog appears. Select the "Inventory" table, and click OK.

  3. The Mailing Genie appears.

    images/mailingGenie.gif
  4. Select Use the Label Genie, and click OK. The Mailing Label Genie appears.

    images/Mailing_Label_Genie.gif
  5. Select "Avery 5095 - "2-1/3" x "3-3/8"; 2 Across" and click Next.

  6. Specify the following label layout:

    • Place your cursor in the first of the six type-in fields at right.

    • In the Fields list select "Tape_ID" and click '>'.

    • Place your cursor in the second of the six type-in fields at right.

    • In the Fields list select "Title" and click '>'.

    • Repeat until the values of all six fields have been set.

  7. Click Next.

    images/mailingGenie3.gif
  8. Keep the default Font selection, and click Next.

  9. Leave the Number of copies of each label set to 1 and click Next.

  10. Select to print All records and click Next.

  11. Leave the Record Order unchanged and click Next.

  12. Select View the Mail Label design.

  13. Click Finish. The label layout appears in the Label Editor.

    images/labelEditor.gif
  14. Click the Save icon.

  15. Enter the name "Inventory" in the Save Label As dialog box.

  16. Click Print Preview.

    • The labels appear in the Print Preview window.

      images/labelPreview.gif
    images/Preview_Form_button.gif

Creating Envelopes

The procedure for creating Envelopes is almost identical to the procedure for creating Labels. The Envelope Genie guides you through the following general steps:

  1. Select a table or set as the data source.

  2. Specify the Envelope size, and its orientation and alignment when fed into your printer.

  3. Define the Envelope address.

  4. Optionally, include a return address.

  5. Specify a font, and the number of copies of each Envelope to print.

  6. Optionally, specify the record selection and sort order.

  7. Preview the Envelope layout and save it, or use the Label Editor to edit it.

Summary

In this lesson, you learned about creating Letters, Labels, and Envelopes, and the use of Rich Text Objects in their design. You learned how to add text, fields, and expressions in the layouts, and how to include conditional text. You also learned about the Rich Text Editor and its word-processing capabilities. See Data Processing Operations to learn about using Alpha Anywhere Operations for manipulating data.

See Also